package com.kws.system.mapper.contractTemplateMapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kws.system.domain.contractManagementDao.Rq.queryContractFilingRq;
import com.kws.system.domain.contractManagementDao.TbContract;
import com.kws.system.domain.contractManagementDao.info.QueryContractFilingInfo;
import com.kws.system.domain.contractManagementDao.info.QueryContractManagementInfo;
import org.apache.ibatis.annotations.Param;

public interface ContractManagementMapper extends BaseMapper<TbContract> {
    Page<QueryContractManagementInfo> queryContractManagementPage(@Param("page") Page<QueryContractManagementInfo> page,
                                                                  @Param("contractName") String contractName,
                                                                  @Param("type") Integer type,
                                                                  @Param("startDate") String startDate,
                                                                  @Param("endDate") String endDate);

    QueryContractManagementInfo queryContractManagementById(@Param("id") Long id);

    Page<QueryContractFilingInfo> queryContractFilingPage(@Param("page") Page<QueryContractFilingInfo> page, @Param("query") queryContractFilingRq query);
}
